package com.xy.lang.domain;

/**
 * 操作的执行顺序，用于aop的order值，执行的顺序如下所示：
 * FIRST        begin
 * EARLIER      begin
 * TRANSACTION  begin
 * LATER        begin
 * LAST         begin
 * LAST         end
 * LATER        end
 * TRANSACTION  end
 * EARLIER      end
 * FIRST        end
 */
public class OrderConstant {

    /**
     * 最早的执行顺序
     */
    public final static int FIRST = Integer.MIN_VALUE;
    /**
     * 稍早的执行顺序
     */
    public final static int EARLIER = -10;
    /**
     * 事务的执行顺序
     */
    public final static int TRANSACTION = 0;
    /**
     * 稍晚的执行顺序
     */
    public final static int LATER = 10;
    /**
     * 最晚的执行顺序
     */
    public final static int LAST = Integer.MAX_VALUE;

}
